<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DAY FORTY-ONE</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="frame">
        <div class="modal">
            <img src="https://100dayscss.com/codepen/alert.png" alt="" width="44" heigh="38">
            <span class="title">Oh snap!</span>
            <p>An error has occured while creating an error report.</p>
            <div class="button">Dismiss</div>
        </div>
    </div>

    <script>
        const modal = document.querySelector('.modal')
        const btn = document.querySelector('.button')
        btn.addEventListener('click',()=>{
            modal.classList.add('hide')
        })
    </script>
</body>
</html>